package com.example.demo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Fyly
 * @since 2019-06-07
 */
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 订单号
     */
    @TableField("orderNumber")
    private String orderNumber;
    /**
     * 下单时间
     */
    @TableField("orderTime")
    private Date orderTime;
    /**
     * 订单状态 0待发货 1已发货 2待收货
     */
    @TableField("orderState")
    private Integer orderState;
    /**
     * 支付状态 0未支付 1已支付
     */
    @TableField("payState")
    private Integer payState;
    /**
     * 收货人id
     */
    @TableField("userId")
    private String userId;
    /**
     * 收货人地址
     */
    @TableField("addrId")
    private String addrId;
    /**
     * 订单总价格
     */
    @TableField("orderMoney")
    private Float orderMoney;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    public Integer getPayState() {
        return payState;
    }

    public void setPayState(Integer payState) {
        this.payState = payState;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAddrId() {
        return addrId;
    }

    public void setAddrId(String addrId) {
        this.addrId = addrId;
    }

    public Float getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(Float orderMoney) {
        this.orderMoney = orderMoney;
    }

    @Override
    public String toString() {
        return "Orders{" +
        "id=" + id +
        ", orderNumber=" + orderNumber +
        ", orderTime=" + orderTime +
        ", orderState=" + orderState +
        ", payState=" + payState +
        ", userId=" + userId +
        ", addrId=" + addrId +
        ", orderMoney=" + orderMoney +
        "}";
    }
}
